package com.nuoniu.sibanyun.mapper.erp;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuoniu.sibanyun.entity.erp.ErpSettleStyle;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 结算方式设置 Mapper 接口
 * </p>
 *
 * @author baiqiang
 * @since 2020-10-12
 */
public interface ErpSettleStyleMapper extends BaseMapper<ErpSettleStyle> {

    @Select("select * from fab_settle_style where company_id=#{companyId} and name=#{name}")
    ErpSettleStyle getByName(Integer companyId, String name);

    @Select("select * from fab_settle_style where company_id=#{companyId} and code=#{code}")
    ErpSettleStyle getByCode(Integer companyId, String code);
}
